From 80f4dffa76041060a10270751ad96c78b57e2b68 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 28 Aug 2014 11:17:10 +0100 Subject: [PATCH] theme: Specify the weight, not the font, for header bar titles Using `font: Bold` will override the font with whatever the system resolves a `Bold` font name to, including the font's own default size. We want the font weight to be bold, but we want the default font name and size to come from the GtkSettings:font-name property, like we do for the rest of the system. --- gtk/resources/theme/Adwaita/_common.scss | 2 +- gtk/resources/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/resources/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index d8cfbcdb3b..8a54ca56ff 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -946,7 +946,7 @@ GtkComboBox { } .title { - font: Bold; + font-weight: bold; padding: 0px 12px; } .subtitle { diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index 6aeb40c7c2..3b3c17220c 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -1134,7 +1134,7 @@ GtkComboBox { box-shadow: inset 0 1px rgba(238, 238, 236, 0.1); } .titlebar .title, GtkCalendar.header .title, .header-bar .title { - font: Bold; + font-weight: bold; padding: 0px 12px; } .titlebar .subtitle, GtkCalendar.header .subtitle, .header-bar .subtitle { diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index c8d6e09367..b852e0f11c 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -1126,7 +1126,7 @@ GtkComboBox { box-shadow: inset 0 1px white; } .titlebar .title, GtkCalendar.header .title, .header-bar .title { - font: Bold; + font-weight: bold; padding: 0px 12px; } .titlebar .subtitle, GtkCalendar.header .subtitle, .header-bar .subtitle { -- 2.30.2